//
//  RMweatherChangeView.m
//  RMNote
//
//  Created by lanou3g on 16/4/20.
//  Copyright © 2016年 lxf. All rights reserved.
//

#import "RMweatherChangeView.h"

@implementation RMweatherChangeView

-(void)awakeFromNib{
   [self weatherView];

}

-(void)weatherView{
    for (int i = 0; i < 9; i++) {
        UIImageView *imgView = [self viewWithTag:i + 1000];
        UITapGestureRecognizer * tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(selectWeatherImage:)];
        [imgView addGestureRecognizer:tap];
        imgView.userInteractionEnabled = YES;
    }
}

-(void)selectWeatherImage:(UIGestureRecognizer *)tapGesture{
    _weatherSelectBlock(((UIImageView *)tapGesture.view).image);
}

-(void)dealloc{
    NSLog(@"%d",111);
}




@end
